<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>首页 {$site_info.site_name|default=''}</title>
	<meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
	<meta name="description" content="{$site_info.site_seo_description|default=''}">
	<include file="public@head" />

</head>

<body>
	<div class="wrapper hp_1">
		<!-- 导航 -->
		<include file="public@nav" />
		<!-- //导航 -->
		<!-- 轮播 -->
		<php>
			$top_slide_id=1;
		</php>
		<div id="index-carousel" class="carousel slide" data-ride="carousel">
			<!-- 指示符 -->
			<ul class="carousel-indicators">
				<slides id="$top_slide_id">
					<li data-target="#index-carousel" data-slide-to="{$key}" <if condition="$key eq 0">
						class="active"
						</if>>
					</li>
				</slides>
			</ul>
			<!-- 轮播图片 -->
			<div class="carousel-inner">
				<slides id="$top_slide_id">
					<div class="carousel-item <if condition=" $key eq 0 ">active</if>">
						<a href="{$vo.url}">
							<img src="{:cmf_get_image_url($vo.image)}" class="w-100 img-fluid">
						</a>
					</div>
				</slides>
			</div>
			<!-- 左右切换按钮 -->
			<a class="carousel-control-prev" href="#index-carousel" data-slide="prev">
				<i class="fa fa-angle-left fa-5x" aria-hidden="true"></i>
			</a>
			<a class="carousel-control-next" href="#index-carousel" data-slide="next">
				<i class="fa fa-angle-right fa-5x" aria-hidden="true"></i>
			</a>
		</div>
		<!-- //轮播 -->
		<!-- 4个分类 -->
		<section class="services-sec">
			<div class="container">
				<div class="services-row">
					<div class="row">
						<php>
							$where=['id'=>1];
						</php>
						<portal:categories where="$where" order="list_order DESC" item="vo">
							<div class="col-lg-3 col-md-6 col-sm-6 col-12">
								<a href="{:cmf_url('portal/list/index',['id'=>$vo.id])}">
									<div class="service-col">
										<img src="__TMPL__/public/assets/images/default.gif" data-src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="" class="img-fluid lazyload">

										<h3>{$vo.name}</h3>
										<p>{$vo.description}</p>
									</div>
								</a>
							</div>
						</portal:categories>
						<php>
							$where=['id'=>2];
						</php>
						<portal:categories where="$where" order="list_order DESC" item="vo">
							<div class="col-lg-3 col-md-6 col-sm-6 col-12">
								<a href="{:cmf_url('portal/list/index',['id'=>$vo.id])}">
									<div class="service-col">
										<img src="__TMPL__/public/assets/images/default.gif" data-src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="" class="lazyload img-fluid">
										<h3>{$vo.name}</h3>
										<p>{$vo.description}</p>
									</div>
								</a>
							</div>
						</portal:categories>
						<php>
							$where=['id'=>3];
						</php>
						<portal:categories where="$where" order="list_order DESC" item="vo">
							<div class="col-lg-3 col-md-6 col-sm-6 col-12">
								<a href="{:cmf_url('portal/list/index',['id'=>$vo.id])}">
									<div class="service-col">
										<img src="__TMPL__/public/assets/images/default.gif" data-src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="" class="lazyload img-fluid">
										<h3>{$vo.name}</h3>
										<p>{$vo.description}</p>
									</div>
								</a>
							</div>
						</portal:categories>
						<php>
							$where=['id'=>4];
						</php>
						<portal:categories where="$where" order="list_order DESC" item="vo">
							<div class="col-lg-3 col-md-6 col-sm-6 col-12">
								<a href="{:cmf_url('portal/list/index',['id'=>$vo.id])}">
									<div class="service-col">
										<img src="__TMPL__/public/assets/images/default.gif"  data-src="{:cmf_get_image_url($vo.more.thumbnail)}"  alt="" class="lazyload img-fluid">
										<h3>{$vo.name}</h3>
										<p>{$vo.description}</p>
									</div>
								</a>
							</div>
						</portal:categories>
					</div>
				</div>
			</div>
		</section>
		<!-- //4个分类 -->
		<!-- 人气推荐 -->
		<php>
			if(empty($param))
			{
			$id=0;
			}else{
			$id=$category;
			};
		</php>
		<div class="vidz-row">
			<div class="container">
				<div class="vidz_sec">
					<h3>人气推荐</h3>
					<a href="#" title="" class="view-btn">查看更多</a>
					<div class="vidz_list">
						<div class="row">
							<portal:articles page="16" where="$id" order="post.post_hits DESC,post.published_time DESC">
								<div class="col-lg-3 col-md-6 col-sm-6 col-6 full_wdth h-100">
									<div class="videoo">
										<div class="vcp_inf">
											<a href="{:cmf_url('user/Profile/about',['id'=>$vo.user.id])}">
												<div class="vc_hd">
													<img src="{:cmf_get_image_url($vo.user.avatar)}" alt=""
														style="height: 60px !important; height: 60px !important;">
												</div>
											</a>
											<div class="vc_info">
												<h4><a href="{:cmf_url('user/Profile/about',['id'=>$vo.user.id])}"
														title="{$vo.user.user_nickname}">{$vo.user.user_nickname}</a>
												</h4>
											</div>
											<span class="vc-count">{$vo.user.fans_count}</span>
										</div>
										<div class="vid_thumbainl">
											<a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}"
												title="{$vo.post_title}">
												<img src="__TMPL__/public/assets/images/default.gif" alt=""  data-src="{:cmf_get_image_url($vo.more.thumbnail)}"
													class="img-fluid lazyload">
											</a>
										</div>
										<div class="video_info">
											<h3>
												<a class="max-show-line-1"
													href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}"
													title="{$vo.post_title}">
													{$vo.post_title}
												</a>
											</h3>
											<span><i class="fa fa-1x fa-eye"
													aria-hidden="true"></i>&nbsp;{$vo.post_hits}&nbsp;&nbsp;<small
													class="posted_dt">{:func_friendly_time($vo.published_time)}</small></span>
										</div>
									</div>
								</div>
							</portal:articles>
							<div class="col-md-12 text-center py-5">
								<div class="d-flex justify-content-center">
									<div class="pagination"><page/></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- //人气推荐 -->
		<!-- 底部 -->
		<include file="public@footer" />
	</div>

	<include file="public@scripts" />

</body>

</html>